package com.ruoyi.common.core.domain.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目资料管理分类对象 t_equipment_projectdatamanagekind
 * 
 * @author ruoyi
 * @date 2024-02-28
 */
public class TEquipmentProjectdatamanagekind extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 项目资料管理分类名称 */
    @Excel(name = "项目资料管理分类名称")
    private String name;

    /** 项目资料管理分类编码 */
    @Excel(name = "项目资料管理分类编码")
    private String code;

    /** 项目资料管理分类父级id */
    @Excel(name = "项目资料管理分类父级id")
    private Long parentid;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long sequence;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createts;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createdby;

    /** 公司id */
    @Excel(name = "公司id")
    private Long companyid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setParentid(Long parentid) 
    {
        this.parentid = parentid;
    }

    public Long getParentid() 
    {
        return parentid;
    }
    public void setSequence(Long sequence)
    {
        this.sequence = sequence;
    }

    public Long getSequence() { return sequence; }
    public void setCreatets(Date createts) 
    {
        this.createts = createts;
    }

    public Date getCreatets() 
    {
        return createts;
    }
    public void setCreatedby(Long createdby) 
    {
        this.createdby = createdby;
    }

    public Long getCreatedby() 
    {
        return createdby;
    }
    public void setCompanyid(Long companyid) 
    {
        this.companyid = companyid;
    }

    public Long getCompanyid() 
    {
        return companyid;
    }

    private List<TEquipmentProjectdatamanagekind> children = new ArrayList<TEquipmentProjectdatamanagekind>();

    public List<String> listcode;

    public List<TEquipmentProjectdatamanagekind> getChildren() {
        return children;
    }

    public void setChildren(List<TEquipmentProjectdatamanagekind> children) {
        this.children = children;
    }

    public List<String> getListcode() {
        return listcode;
    }

    public void setListcode(List<String> listcode) {
        this.listcode = listcode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("parentid", getParentid())
            .append("sequence", getSequence())
            .append("createts", getCreatets())
            .append("createdby", getCreatedby())
            .append("companyid", getCompanyid())
            .toString();
    }
}
